/**
 * Copyright &copy; 2017-2020 <a href="http://www.fosung.com/">FosungFrame</a> All rights reserved.
 */
package com.fosung.frame.modules.score.entity;
import java.util.Date;
import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fosung.frame.common.persistence.DataEntity;

/**
 * 参会人员表Entity
 * @author ygl
 * @version 2017-09-03
 */
public class OrganizePerson extends DataEntity<OrganizePerson> {
	
	private static final long serialVersionUID = 1L;
	private String personAssessmentInfoId;		// 党员积分项ID
	private String personId;		// 党员ID
	private String name;		// 姓名
	private String applyScore;		// 申请积分(一个人所有积分项的总分)
	private String checkScore;		// 考核积分
	private String year;
	private Date createTime;		// 创建时间
	private Date updateTime;		// 更新时间
	private String column1;		// column_1
	private String column2;		// column_2
	
	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public OrganizePerson() {
		super();
	}

	public OrganizePerson(String id){
		super(id);
	}

	@Length(min=1, max=64, message="党员积分项ID长度必须介于 1 和 64 之间")
	public String getPersonAssessmentInfoId() {
		return personAssessmentInfoId;
	}

	public void setPersonAssessmentInfoId(String personAssessmentInfoId) {
		this.personAssessmentInfoId = personAssessmentInfoId;
	}
	
	@Length(min=1, max=64, message="党员ID长度必须介于 1 和 64 之间")
	public String getPersonId() {
		return personId;
	}

	public void setPersonId(String personId) {
		this.personId = personId;
	}
	
	@Length(min=0, max=64, message="姓名长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=64, message="申请积分(一个人所有积分项的总分)长度必须介于 0 和 64 之间")
	public String getApplyScore() {
		return applyScore;
	}

	public void setApplyScore(String applyScore) {
		this.applyScore = applyScore;
	}
	
	@Length(min=0, max=64, message="考核积分长度必须介于 0 和 64 之间")
	public String getCheckScore() {
		return checkScore;
	}

	public void setCheckScore(String checkScore) {
		this.checkScore = checkScore;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@Length(min=0, max=32, message="column_1长度必须介于 0 和 32 之间")
	public String getColumn1() {
		return column1;
	}

	public void setColumn1(String column1) {
		this.column1 = column1;
	}
	
	@Length(min=0, max=32, message="column_2长度必须介于 0 和 32 之间")
	public String getColumn2() {
		return column2;
	}

	public void setColumn2(String column2) {
		this.column2 = column2;
	}
	
}